package com.example.holes;

import android.os.Bundle;
import android.widget.Button;
import android.widget.ImageButton;
import android.app.Activity;

/*
 * Temporary activity to test out game mechanics.
 */
public class GameActivity extends Activity {
	GameEngine gEngine;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setGameEngine();
        setContentView(new GameView(this, gEngine));
    }
    
    private void setGameEngine(){
    	switch(GameState.level){
    	case 1: gEngine = new Level01(this.getResources());
    			break;
    	case 2: gEngine = new Level02(this.getResources());
				break;
    	case 3: gEngine = new Level03(this.getResources());
				break;
    	case 4:	gEngine = new Level04(this.getResources());
				break;
    	case 5:	gEngine = new Level05(this.getResources());
				break;
    	case 6:	gEngine = new Level06(this.getResources());
				break;
    	case 7:	gEngine = new Level07(this.getResources());
				break;
    	case 8:	gEngine = new Level08(this.getResources());
				break;
    	case 9:	gEngine = new Level09(this.getResources());
				break;
    	case 10:gEngine = new Level10(this.getResources());
				break;
    	}
    }
}


